﻿/* PN264 - A Parallel H.264 Encoding Utility
 * Copyright © 2009 PN264 Development Team
 *
 * This software is released the terms and conditions of the MIT License,
 * a copy of which can be found in the License.txt file.
 *
 * Contributors:
 * Will 'AnarkiNet' Shelley (AnarkiNet@gmail.com)
 */
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PN264.Controls
{
    /// <summary>
    /// Provides a control that displays logging information.
    /// </summary>
    public partial class LogView : UserControl
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="LogView"/> class.
        /// </summary>
        public LogView()
        {
            InitializeComponent();
        }
        /// <summary>
        /// Records a message to the log and displays it.
        /// </summary>
        /// <param name="message"></param>
        public void Record(string message)
        {
            this.logBox.Text += message;
        }
        /// <summary>
        /// Clears all log messages.
        /// </summary>
        public void Clear()
        {
            this.logBox.Text = string.Empty;
        }
    }
}
